package com.geeksaga.dao;

import java.util.List;


import org.springframework.dao.DataAccessException;

import com.geeksaga.domain.PrimaryCode;

/**
 * @author newbie
 * @since 0.1
 */
public interface PrimaryCodeDao {
    /**
     * @param primaryCode
     * @return
     * @throws DataAccessException
     */
    public PrimaryCode add(PrimaryCode primaryCode) throws DataAccessException;
    /**
     * @param primaryCode
     * @return
     * @throws DataAccessException
     */
    public PrimaryCode modify(PrimaryCode primaryCode) throws DataAccessException;
    /**
     * @param primaryCode
     * @return
     * @throws DataAccessException
     */
    public PrimaryCode remove(PrimaryCode primaryCode) throws DataAccessException;
    /**
     * @return
     * @throws DataAccessException
     */
    public List<PrimaryCode> findList() throws DataAccessException;
    /**
     * @param primaryCode
     * @return
     * @throws DataAccessException
     */
    public PrimaryCode find(PrimaryCode primaryCode) throws DataAccessException;
    /**
     * @return
     * @throws DataAccessException
     */
    public int count() throws DataAccessException;
}